SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 36591: An authentication failure might occur when you use SAS® BI Web Services for .NET to connect to a SAS Workspace Server

DetailsAboutRate It

When you use SAS BI Web Services for .NET to connect to a SAS Workspace Server, an authentication error might occur and the connection fails. The connection fails when the SAS Workspace Server is in the same authentication domain as the SAS® Metadata Server and the user does not have logon credentials for that authentication domain stored in the SAS® Metadata Repository.

The problem occurs because SAS BI Web Services for .NET passes in a null value for the authentication domain.

To resolve this issue, provide the metadata authentication domain in the Domain element, which is in the WS-Security header of the Simple Object Access Protocol (SOAP) request.

For example, the following SOAP request shows the SAS Metadata Server in the DefaultAuth domain:

<soapenv:Envelope xmlns:add="http://tempuri.org/AddFloatsWorkspace"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header>
      <wsse:Security soapenv:mustUnderstand="1"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-s
ecext-1.0.xsd">
         <wsse:UsernameToken wsu:Id="UsernameToken-1"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-ut
ility-1.0.xsd">
            <wsse:Username>sasdemo</wsse:Username>
            <wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-pro
file-1.0#PasswordText">Demo123</wsse:Password>
            <wsse:Nonce
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-messa
ge-security-1.0#Base64Binary">ex02otYhd/wVWzv92bbahg==</wsse:Nonce>
            <wsu:Created>2009-07-17T14:46:38.329Z</wsu:Created>
            <Domain>DefaultAuth</Domain>
         </wsse:UsernameToken>
      </wsse:Security>
   </soapenv:Header>
   <soapenv:Body>
      <add:AddFloats_WS>
         <add:num1>2.0</add:num1>
         <add:num2>3.0</add:num2>
      </add:AddFloats_WS>
   </soapenv:Body>
</soapenv:Envelope>

The Domain element appears in the WS-Security header, but is not in a namespace, which conforms to the WS-Security specification. The Domain element contains the authentication domain that the SAS Metadata Server is in, which is DefaultAuth in this example.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS BI Web Services for .NETMicrosoft® Windows® for x649.2 TS2M09.2 TS2M3
Microsoft Windows Server 2003 Datacenter Edition9.2 TS2M09.2 TS2M3
Microsoft Windows Server 2003 Enterprise Edition9.2 TS2M09.2 TS2M3
Microsoft Windows Server 2003 Standard Edition9.2 TS2M09.2 TS2M3
Microsoft Windows XP Professional9.2 TS2M09.2 TS2M3
Windows Vista9.2 TS2M09.2 TS2M3
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.